<% 
	# Check if user has the permission to create comments
	unless has_permission_for?('Comments', 'new')
		return 
	end
%>

<%= form_for([@document, @new_comment]) do |f| %>	
	<%= render 'comments/fields', f: f %>	
	<%= f.submit t('comment.new.submit'), class: 'button' %>
<% end %>
<br><br>